import React, {useEffect} from 'react';
import { useSelector, useDispatch } from 'react-redux';

import Layout from '@components/home/layout';
import Banner from '@components/home/banner'
import SectionTitle from '@components/home/section-title'
// import Cases from '@components/home/case/case-list'
// import Pagination from '@components/home/pagination'

import { HomeActionTypes } from '@actions/index'

export default ({ contacts = [
  {title:'公司地址',content:'北京市朝阳区东亚望京中心A座2516'},
  {title:'联系电话',content:'010-84963855'},
  {title:'业务微信',content:'sibanzixun'},
  {title:'电子邮箱',content:'sibanzixun@163.com'},
]}) => {
  
  const dispach = useDispatch();
  
  // const homeData = useSelector(state=>state.home)
  // console.log(homeData)

  useEffect(() => {
    dispach({
      type:HomeActionTypes.HOME_PAGE_DATA
    });
  }, []);

  return (
    <Layout>
      <Banner src={'http://www.wiste.cn/Public/assets/imgs/home/banner/contact-us-banner.jpg'}/>
      <SectionTitle title={'公司地址'} titleEn={'北京市朝阳区东亚望京中心A座2516'}/>
      
    </Layout>
  );
};
